\hypertarget{classpycol_1_1engine_1_1Singleton_1_1Singleton}{
\section{pycol.engine.Singleton.Singleton Class Reference}
\label{classpycol_1_1engine_1_1Singleton_1_1Singleton}\index{pycol::engine::Singleton::Singleton@{pycol::engine::Singleton::Singleton}}
}


Documentation for \hyperlink{classpycol_1_1engine_1_1Singleton_1_1Singleton}{Singleton} class.  
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
def \hyperlink{classpycol_1_1engine_1_1Singleton_1_1Singleton_a568f609cb6e981ad276e22c2ec85c1fa}{\_\-\_\-new\_\-\_\-}
\end{DoxyCompactItemize}
\subsection*{Static Private Attributes}
\begin{DoxyCompactItemize}
\item 
dictionary \hyperlink{classpycol_1_1engine_1_1Singleton_1_1Singleton_a24f6d773d493df85de4838076bc56502}{\_\-shared\_\-state} = \{\}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Documentation for \hyperlink{classpycol_1_1engine_1_1Singleton_1_1Singleton}{Singleton} class. This class is the \hyperlink{classpycol_1_1engine_1_1Singleton_1_1Singleton}{Singleton} definition object\par
 This class is used for each child can be instanciated several times, but all same objects have the same state.\par
 If you create a class B where the super class is \hyperlink{classpycol_1_1engine_1_1Singleton_1_1Singleton}{Singleton}\par
 you can create an object b and an another object a from the class B.\par
 They are 2 instance but a and b have always the same state.\par
 Example:\par
 $>$ class B(Singleton):\par
 ... pass\par
 ...\par
 $>$ a = B()\par
 $>$ b = B()\par
 $>$ a.myAttribute = 1\par
 $>$ b.myAttribute\par
 1\par
 $>$ b.myAttribute = 2\par
 $>$ a.myAttribute\par
 2\par
 $>$ a is b\par
 False\par
 \begin{DoxyReturn}{Returns}
: instance 
\end{DoxyReturn}


Definition at line 59 of file Singleton.py.

\subsection{Member Function Documentation}
\hypertarget{classpycol_1_1engine_1_1Singleton_1_1Singleton_a568f609cb6e981ad276e22c2ec85c1fa}{
\index{pycol::engine::Singleton::Singleton@{pycol::engine::Singleton::Singleton}!\_\-\_\-new\_\-\_\-@{\_\-\_\-new\_\-\_\-}}
\index{\_\-\_\-new\_\-\_\-@{\_\-\_\-new\_\-\_\-}!pycol::engine::Singleton::Singleton@{pycol::engine::Singleton::Singleton}}
\subsubsection[{\_\-\_\-new\_\-\_\-}]{\setlength{\rightskip}{0pt plus 5cm}def pycol.engine.Singleton.Singleton.\_\-\_\-new\_\-\_\- ( {\em cls}, \/   {\em args}, \/   {\em kw})}}
\label{classpycol_1_1engine_1_1Singleton_1_1Singleton_a568f609cb6e981ad276e22c2ec85c1fa}


Definition at line 61 of file Singleton.py.

\subsection{Member Data Documentation}
\hypertarget{classpycol_1_1engine_1_1Singleton_1_1Singleton_a24f6d773d493df85de4838076bc56502}{
\index{pycol::engine::Singleton::Singleton@{pycol::engine::Singleton::Singleton}!\_\-shared\_\-state@{\_\-shared\_\-state}}
\index{\_\-shared\_\-state@{\_\-shared\_\-state}!pycol::engine::Singleton::Singleton@{pycol::engine::Singleton::Singleton}}
\subsubsection[{\_\-shared\_\-state}]{\setlength{\rightskip}{0pt plus 5cm}dictionary {\bf pycol.engine.Singleton.Singleton.\_\-shared\_\-state} = \{\}\hspace{0.3cm}{\ttfamily  \mbox{[}static, private\mbox{]}}}}
\label{classpycol_1_1engine_1_1Singleton_1_1Singleton_a24f6d773d493df85de4838076bc56502}


Definition at line 60 of file Singleton.py.

The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/home/jonathan/Projets/Python/pycol/engine/\hyperlink{Singleton_8py}{Singleton.py}\end{DoxyCompactItemize}
